package hw_1apr2014;

import java.util.Scanner;
public class hw_2 {
@SuppressWarnings("unused")
public static void main(String[] args) {
		Scanner input= new Scanner(System.in);
		int bal ;
		boolean check;
		//check = false;
		while(check = true)
		{
		System.out.println("Enter Bal !!! " + "\n");
		if (input.hasNextInt())
		 {
		      bal = input.nextInt();
		}
		 else
		   {
		      System.out.println("Wrong value ! Try again!");
		    check = false;
		      return;
		   }
	String result ;
	if (bal >= 0 && bal <=29)
	{
	result = "Very bad";
	}
	else if (bal >= 30 && bal <=59 )
	{
		result = "Bad ";
	}
	else if (bal >= 60 && bal <=65 )
	{
		result = "Weakly";
	}
	else if (bal >= 66 && bal <=70 )
	{
		result = "Satisfactorily";
	}
	else if (bal >= 71 && bal <=80 )
	{
		result = "Good ";
	}
	else if (bal >= 81 && bal <=90 )
	{
		result = "Very good ";
	}
	else if (bal >= 91 && bal <=100 )
	{
		result = "Excellent ";
	}
	else
	{
		result = "Out of range";
	}
	System.out.println( "Your mark is:  " + result + ". " + "Your bal "+ bal);
	}
	}
}	

